<ui:composition xmlns="http://www.w3.org/1999/xhtml"
    template="/layout/page/sample/top-center-template.xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:c="http://java.sun.com/jsp/jstl/core"
	xmlns:a4j="http://www.sinosoft.com.cn/a4j"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui">
 
    <ui:define name="compTop">
   		 查询:<h:outputText value="" /><h:inputText />
	</ui:define>
	<ui:define name="compCenter">
        <ui:param name="pageViewBean" value="#{commonContentViewBean}" />
		
		<h:form style="margin:0" id="#{pageViewBean.id}_roleForm">
			<ui:decorate
				template="/layout/iteration/datatable/sino-datatable-single-template.xhtml">
				<ui:param name="compId" value="#{pageViewBean.id}" />
				<ui:param name="compViewBean" value="#{pageViewBean}" />
				<ui:param name="compShowIndex" value="true" />
				<ui:param name="compOnRowSelectUpdate" value="" />
	
				<ui:define name="compButtons">
					<p:commandButton
						onstart="btnAction('#{commonContentViewBean.id}','v3.manage.role.roleLayout.add','800','600','icons/cog_add.png','add','role-manage-scene','role-add');"
						title="添加角色" image="ui-icon-disk" value="添加">
					</p:commandButton>
					<p:commandButton
						onstart="btnAction('#{commonContentViewBean.id}','v3.manage.role.roleLayout.edit','800','600','icons/cog_edit.png','edit','role-manage-scene','role-edit');"
						title="编辑角色" image="ui-icon-disk" value="编辑">
					</p:commandButton>
					<p:commandButton
						actionListener="#{roleManagerAction.delete}"
						onstart="if(confirm('确认要删除吗？')){return true;}else{return false;}"
						update="#{pageViewBean.id}_roleForm"
						title="删除角色" image="ui-icon-disk" value="删除">
						<h:inputHidden value="#{pageViewBean.id}" />
					</p:commandButton>
					<p:commandButton
						onstart="btnAction('#{commonContentViewBean.id}','','450','360','icons/cog_add.png','excel','role-manage-scene','user-add');"
						title="导出Exel" image="ui-icon-disk" value="导出Exel">
					</p:commandButton>
				</ui:define>
			</ui:decorate>
		</h:form>
	</ui:define>
</ui:composition>
